#{extends 'loggeduser.html' /}

#{set 'mainnavi'}
    #{navigation type:'main'}
        <li class="#{if selected == 'members' } current-tab #{/if}"><a href="@{Club.listClubMembers()}">Members</a></li>
        <li class="#{if selected == 'list' || selected == 'offer' || selected == 'approve' } current-tab #{/if}"><a href="@{Discount.list()}">Discounts #{if discountsWaitingCount ?: yes} (${discountsWaitingCount}) #{/if}</a></li>
        <li class="#{if selected == 'info' || selected == 'edit' || selected == 'password' } current-tab #{/if}"><a href="@{Profile.info()}">Profile</a></li>
    #{/ navigation}
#{/ set}

#{set 'footerNavigation'}
    <a href="@{Club.listClubMembers()}">Members</a> <span class="text-separator">|</span> 
    <a href="@{Discount.list()}">Discounts#{if discountsWaitingCount ?: yes} (${discountsWaitingCount})#{/if}</a> <span class="text-separator">|</span> 
    <a href="@{Profile.info()}">Profile</a> <span class="text-separator">|</span> 
#{/set}

#{doLayout /}